<!DOCTYPE html>
<html style="height:100%">
<head>
    <title></title>
    <% include ../../layouts/import.ejs %>
</head>
<body style="height:100%;background:#F8F6F2;">
<% include ../../layouts/header.ejs %>

<div class="height index">
    <div class="container main-content">
        <div class="row">
            <form id="mainForm" role="form" method="post" action="/person/save">
                <input type="hidden" value="<%= id %>" name="id"/>
                <div class="form-group">
                    <label class="control-label">账号<span style="color:red;font-weight:bolder">*</span></label>
                    <input type="text" value="<%= loginName %>" id="loginName" name="loginName" class="form-control"
                           data-provide="typeahead" autocomplete="false"/>
                </div>
                <div class="form-group">
                    <label class="control-label">用户名<span style="color:red;font-weight:bolder">*</span></label>
                    <input type="text" value="<%= personName %>" id="personName" name="personName"
                           class="form-control"/>
                </div>
                <div class="form-group">
                    <label class="control-label">年龄<span style="color:red;font-weight:bolder">*</span></label>
                    <input type="text" value="<%= personAge %>" id="personAge" name="personAge"
                           class="form-control"/>
                </div>
                <div class="form-group">
                    <label class="control-label">性别<span style="color:red;font-weight:bolder">*</span></label>
                    <input type="text" value="<%= personSex %>" id="personSex" name="personSex"
                           class="form-control"/>
                </div>
                <div class="form-group">
                    <label class="control-label">联系方式<span style="color:red;font-weight:bolder">*</span></label>
                    <input type="text" value="<%= personContactInformation %>" id="personContactInformation" name="personContactInformation"
                           class="form-control"/>
                </div>
                <div class="form-button">
                    <button type="submit" class="person-preservation btn btn-primary">保存</button>
                    <button type="button" data-dismiss="modal" id="return" class="btn btn-default" style="margin-left: 3%">返回</button>
                </div>

            </form>
        </div>
    </div>

</div>

</body>
<script>
    $(function () {
        $('#return').click(function () {
            location.href = '/person/listAll';
        });

    })
</script>
</html>